package com.xdjd.mobile.business.entity.model.activity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
  表:activity_challenge_record_detail 挑战记录详情
*/
@Table(name = "activity_challenge_record_detail")
@SuppressWarnings("serial")
public class ActivityChallengeRecordDetailPo implements Serializable {

	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id; 
	private String recordNo; // 记录编号
	private Long memberId; // 挑战用户id
	private Long stepNumber; // 步数
	private Date recordDate; // 记录日期
	private Integer ranking; // 排名
	private Byte isOwn; // 是否自己（0：否，1：是）
	private Integer obtainCoin; // 获取金币数
	private Date createTime; 
	private Date modifyTime; 

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return this.id;
	}

	/** 设置 记录编号,对应字段 activity_challenge_record_detail.record_no */
	public void setRecordNo(String recordNo) {
		this.recordNo = recordNo;
	}
	/** 获取 记录编号,对应字段 activity_challenge_record_detail.record_no */
	public String getRecordNo() {
		return this.recordNo;
	}

	/** 设置 挑战用户id,对应字段 activity_challenge_record_detail.member_id */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	/** 获取 挑战用户id,对应字段 activity_challenge_record_detail.member_id */
	public Long getMemberId() {
		return this.memberId;
	}

	/** 设置 步数,对应字段 activity_challenge_record_detail.step_number */
	public void setStepNumber(Long stepNumber) {
		this.stepNumber = stepNumber;
	}
	/** 获取 步数,对应字段 activity_challenge_record_detail.step_number */
	public Long getStepNumber() {
		return this.stepNumber;
	}

	/** 设置 记录日期,对应字段 activity_challenge_record_detail.record_date */
	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}
	/** 获取 记录日期,对应字段 activity_challenge_record_detail.record_date */
	public Date getRecordDate() {
		return this.recordDate;
	}

	/** 设置 排名,对应字段 activity_challenge_record_detail.ranking */
	public void setRanking(Integer ranking) {
		this.ranking = ranking;
	}
	/** 获取 排名,对应字段 activity_challenge_record_detail.ranking */
	public Integer getRanking() {
		return this.ranking;
	}

	/** 设置 是否自己（0：否，1：是）,对应字段 activity_challenge_record_detail.is_own */
	public void setIsOwn(Byte isOwn) {
		this.isOwn = isOwn;
	}
	/** 获取 是否自己（0：否，1：是）,对应字段 activity_challenge_record_detail.is_own */
	public Byte getIsOwn() {
		return this.isOwn;
	}

	/** 设置 获取金币数,对应字段 activity_challenge_record_detail.obtain_coin */
	public void setObtainCoin(Integer obtainCoin) {
		this.obtainCoin = obtainCoin;
	}
	/** 获取 获取金币数,对应字段 activity_challenge_record_detail.obtain_coin */
	public Integer getObtainCoin() {
		return this.obtainCoin;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public Date getModifyTime() {
		return this.modifyTime;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ActivityChallengeRecordDetailPo other = (ActivityChallengeRecordDetailPo) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
    @Override
	public String toString() {
    	StringBuilder sb = new StringBuilder();
        sb.append("ActivityChallengeRecordDetailPo [");
        		        sb.append("id=").append(id);
        		sb.append(", ");        sb.append("recordNo=").append(recordNo);
        		sb.append(", ");        sb.append("memberId=").append(memberId);
        		sb.append(", ");        sb.append("stepNumber=").append(stepNumber);
        		sb.append(", ");        sb.append("recordDate=").append(recordDate);
        		sb.append(", ");        sb.append("ranking=").append(ranking);
        		sb.append(", ");        sb.append("isOwn=").append(isOwn);
        		sb.append(", ");        sb.append("obtainCoin=").append(obtainCoin);
        		sb.append(", ");        sb.append("createTime=").append(createTime);
        		sb.append(", ");        sb.append("modifyTime=").append(modifyTime);
                sb.append("]");
		return sb.toString();
	}

}